package com.lagou.edu.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import javax.validation.constraints.NotNull;

@FeignClient(value = "lagou-service-code", path = "/code")
@Service
public interface CodeClient {
    @GetMapping("/validate/{email}/{code}")
    public String validate(@PathVariable @NotNull String email,
                           @PathVariable @NotNull String code);
}
